package vn.fsoft.gst.service;

import java.util.List;
import vn.fsoft.gst.domain.Directorate;
/**
 *
 * @author MinhNT
 *
 */
public interface DirectorateService {
   /**
    * @category add one directorate to database
    * @param directorate
    * input directorate
    * @return
    * output true or false
    */
   Boolean add(Directorate directorate);
   /**
    *@category update one directorate to database
    * @param directorate
    * input directorate
    * @return
    * return true or false
    */
   Boolean edit(Directorate directorate);
   /**
    *@category get directorate by Id
    * @param id
    * input id of directorate
    * @return
    * return Directorate
    */
   Directorate getDirectorateById(int id);
   /**
    *
    *@category get list directorate by Id from database
    * @param orgID
    * input orgID of Organisation
    * @return
    * return list all directorate by orgID
    */
   List<Directorate> getListDirectorateByOrgID(int orgID);
   /**
    *
    *@category active directorate by Id
    * @param directorateID
    * input1 directorateID of directorate
    * @param active
    * status of directorate
    * @return
    * return true or false
    */
   Boolean setActiveDirectorate(int directorateID, Boolean active);
}
